package com.coda.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 评论回复
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentReply {
    //主键
    private Integer id;
    //评论id
    private Integer commentId;
    //用户id回复评论
    private Integer userReplyId;
    //回复内容
    private String reply;
    //点赞数量
    private String upvote;
    //回复时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 数据库中未定义字段
     */
    private String nickname;

}
